package com.itheima.device.dao;

import com.itheima.device.pojo.Device;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface DeviceMapper  extends Mapper<Device> {

     //查找设备
     @Select("select * from t_device  where id = #{id}")
     List<Device> findDeviceById(Integer id);

}
